package com.jbit.hxy.feign;

import com.jbit.hxy.common.Result;
import com.jbit.hxy.feign.fallback.OrderFeignClientFallback;
import com.jbit.hxy.model.po.WxOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "order-service",fallback = OrderFeignClientFallback.class)
public interface OrderFeignClient {

    @GetMapping("/order/get")
    Result<WxOrder> getOrderByOrderNumber(@RequestParam(value = "orderNumber") String orderNumber);
}
